# Maintainer: Alexander Epaneshnikov <alex19ep@archlinux.org>
# Contributor: Kewl <xrjy@nygb.rh.bet(rot13)>
# Contributor: Adam Nielsen <malvineous@shikadi.net>

pkgname='etc-update'
pkgdesc="CLI to interactively merge .pacnew configuration files"
pkgver=2.3.99
pkgrel=2
arch=('any')
url="https://wiki.gentoo.org/wiki/Handbook:X86/Portage/Tools#etc-update"
license=('GPL')
depends=('bash')
makedepends=('git')
optdepends=('dialog: for the menu mode')
backup=("etc/etc-update.conf")
source=("https://github.com/gentoo/portage/archive/portage-${pkgver}.tar.gz")
sha512sums=('aa5f955c191106855bc802e6991e51c309ee6727b8a2cb57ab4ca28f48e1f7959a718b54b0b60e22559c436d370da8c1847ddfdc09b3ed823cde8d688be015f6')
b2sums=('25065893dff649d6380a6e6debc6461c015e225811f26dbe994a572a4434feee241ac9b22f48cadd0f5071e6d76f1a69f7607e36e108e7a244c5795e5e6dd9f6')

package() {
	cd portage-portage-${pkgver}
	install -vDm755 bin/${pkgname} -t "${pkgdir}/usr/bin"
	install -vDm644 cnf/${pkgname}.conf -t "${pkgdir}/etc"
	install -vDm644 man/${pkgname}.1 -t "${pkgdir}/usr/share/man/man1"
}
